projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f353397
)
imx6: make use of lldiv(..)
author
Christian Gmeiner
<
[email protected]
>
Wed, 8 Jan 2014 07:24:25 +0000
(08:24 +0100)
committer
Stefano Babic
<
[email protected]
>
Mon, 13 Jan 2014 10:52:28 +0000
(11:52 +0100)
Commit
762a88ccf8540948fbf8c31b40a29d1e0684a25b
introduces
a 64-bit division without using the lldiv() function,
which pulls in previously unused libgcc stuff.
Signed-off-by: Måns Rullgård <
[email protected]
>
Signed-off-by: Christian Gmeiner <
[email protected]
>
Acked-by: Stefano Babic <
[email protected]
>
arch/arm/cpu/armv7/mx6/clock.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/mx6/clock.c
b/arch/arm/cpu/armv7/mx6/clock.c
index fcc4f352c3676c40577ddbe32deb7d468bd01866..f12bba2944a915558c24738760f80d0d72d2b3b3 100644
(file)
--- a/
arch/arm/cpu/armv7/mx6/clock.c
+++ b/
arch/arm/cpu/armv7/mx6/clock.c
@@
-5,6
+5,7
@@
*/
#include <common.h>
+#include <div64.h>
#include <asm/io.h>
#include <asm/errno.h>
#include <asm/arch/imx-regs.h>
@@
-123,7
+124,7
@@
static u32 mxc_get_pll_pfd(enum pll_clocks pll, int pfd_num)
return 0;
}
- return
(freq * 18) / (
(div & ANATOP_PFD_FRAC_MASK(pfd_num)) >>
+ return
lldiv(freq * 18,
(div & ANATOP_PFD_FRAC_MASK(pfd_num)) >>
ANATOP_PFD_FRAC_SHIFT(pfd_num));
}